package com.wnx.job.modules.rms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wnx.job.modules.rms.mapper.RmsExperienceMapper;
import com.wnx.job.modules.rms.model.RmsExperience;
import com.wnx.job.modules.rms.service.RmsExperienceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-17
 */
@Service
public class RmsExperienceServiceImpl extends ServiceImpl<RmsExperienceMapper, RmsExperience> implements RmsExperienceService {
    @Resource
    private RmsExperienceMapper experienceMapper;
    /**
     * 通过简历ID查询实习经历
     * @param resumeId
     * @return
     */
    @Override
    public List<RmsExperience> findExperienceListByResumeId(Long resumeId) {
        return experienceMapper.selectList(new QueryWrapper<RmsExperience>().lambda().eq(RmsExperience::getResumeId,resumeId));
    }
}
